<template>
<onekit-page>
<onekit-view onekit-class="container">
	<div is="onekit-template-head" :DATA="`${JSON.stringify({title:'textarea'})}`"></div>
	<onekit-view onekit-class="page-body">
		<onekit-view onekit-class="page-section">
			<onekit-view onekit-class="page-section-title">输入区域高度自适应，不会出现滚动条</onekit-view>
			<onekit-view onekit-class="textarea-wrp">
				<onekit-textarea auto-height @Blur="bindTextAreaBlur"></onekit-textarea>
			</onekit-view>
		</onekit-view>
		<onekit-view onekit-class="page-section">
			<onekit-view onekit-class="page-section-title">这是一个可以自动聚焦的textarea</onekit-view>
			<onekit-view onekit-class="textarea-wrp">
				<onekit-textarea onekit-style="height: 3em" auto-focus="true"></onekit-textarea>
			</onekit-view>
		</onekit-view>
	</onekit-view>
	<div is="onekit-template-foot"></div>
</onekit-view>
</onekit-page></template>
<script>
/* eslint-disable */
import Vue from 'vue';
import onekit_template_0 from '../../../../page/common/head.head.vue';Vue.component('onekit-template-head',onekit_template_0);
import onekit_template_1 from '../../../../page/common/foot.foot.vue';Vue.component('onekit-template-foot',onekit_template_1);
const ONEKIT_JSON= {
  "navigationBarTitleText": "textarea",
  "usingComponents": {
    
  }
};
const ONEKIT_SJS = {
};
import wx from '../../../../../weixin2vue/wx.js';
import Macro from '../../../../../weixin2vue/Macro.js';
const {getApp,getCurrentPages} = Macro;
import Page from '../../../../../weixin2vue/OnekitPage.js';
import Component from '../../../../../weixin2vue/OnekitComponent.js';
export default Page(ONEKIT_JSON,[],ONEKIT_SJS,{
    "onShareAppMessage"(){
      return {
        "title":'textarea',
        "path":'page/component/pages/textarea/textarea'
};
    },
    "data":{
        "focus":false
},
    "bindTextAreaBlur"(e){
      console.log(e.detail.value);
    }
});

</script>
<style 
 lang="css">
.onekit-textarea {
  width: 350px ;
  padding: 13px 0 ;
}
.textarea-wrp {
  padding: 0 13px ;
}
</style>